package com.kolon.business.mngr.banner.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.kolon.framework.interfaces.AbstractDao;

/**
 *	BannerDaoImpl class
 *	@author Stone
 *	@since 2011.08.11
 */
@SuppressWarnings("rawtypes")
@Component("com.kolon.business.mngr.banner.dao.BannerDaoImpl")
public class BannerDaoImpl extends AbstractDao implements BannerDao {
	
	/**
	 * 배너 정보 조회
	 */
	public Map getMap(Map map) throws SQLException {
		return getMap("mngr.banner.getMap", map);
	}
	/**
	 * 배너 레코드수 조회
	 */
	public int getCount(Map map) throws SQLException {
		return getCount("mngr.banner.getCount", map);
	}
	
	/**
	 * 배너 목록 조회
	 */
	public List getPageList(Map map, int startIndex, int endIndex) throws SQLException {
		return getPageList("mngr.banner.getPageList", map, startIndex, endIndex);
	}
	
	/**
	 * 배너 시퀀스를 얻음
	 */
	public Map getMax() throws SQLException {
		return getMap("mngr.banner.getMax", null);
	}
	
	/**
	 * 배너 등록
	 */
	public void insert(Map map) throws SQLException {
		insert("mngr.banner.insert", map);
	}
	
	/**
	 * 배너 수정
	 */
	public void update(Map map) throws SQLException {
		update("mngr.banner.update", map);
	}
	
	/**
	 * 배너 삭제
	 */
	public void delete(Map map) throws SQLException {
		delete("mngr.banner.delete", map);
	}
	
}
